package com.springboot.cloud.demos.feign.service;

import com.springboot.cloud.common.core.entity.vo.Result;
import com.springboot.cloud.common.core.exception.SystemErrorType;
import com.springboot.cloud.demos.entity.form.MomentForm;
import com.springboot.cloud.demos.entity.po.Moment;
import org.springframework.stereotype.Component;

@Component
public class MomentServiceFallback implements MomentService {

    @Override
    public Result save(MomentForm momentForm) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result<Moment> get(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result  getMomentMap(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result delete(String id) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result list(String userId, Integer type, Integer pageNo, Integer pageSize) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result followList(String userId, Integer sex, Integer real, Integer pretty, Integer pageNo, Integer pageSize) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result recommendList(String id, Integer sex, Integer real, Integer pretty, Integer pageNo, Integer pageSize) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result broadcastList(Integer sex, Integer real, Integer pretty,Integer type, Integer pageNo, Integer pageSize) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result nearbyList(Integer sex, Integer real, Integer pretty, float longitude, float latitude, Integer pageNo, Integer pageSize) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result next(String momentId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

    @Override
    public Result prev(String momentId) {
        return Result.fail(SystemErrorType.SYSTEM_BUSY);
    }

}
